import { Statistics } from "@/types/statistics";
import { get } from "@/utils/request";

/**
* 查询文章排名类别
* @returns
*/
export const queryArticleCountByCategory = () => get<Statistics.CountVo[]>(`/statistics/hotCategoryRank`);
/**
 * 查询标签关联的文章数量
 * @returns
 */
export const queryArticleCountByTag = () => get<Statistics.CountVo[]>(`/statistics/hotTagRank`);
/**
 * 创作最高的用户
 * @returns
 */
export const queryArticleCountByUser = () => get<Statistics.CountVo[]>(`/statistics/hotUserArticleRank`);
/**
 * 用户今年每月注册数量
 * @returns
 */
export const userRegisterCount = () => get<Statistics.TimeCountVo[]>(`/statistics/userRegisterCount`);
/**
 * 统计每月文章数量
 * @returns
 */
export const queryArticleCountByMonth = () => get<Statistics.TimeCountVo[]>(`/statistics/queryArticleCountByMonth`);
/**
 * 查询文章内容统计
 * @returns
 */
export const queryContentCount = () => get<Statistics.ContentCount>(`/statistics/queryContentCount`);
/**
 * 查询用户总数
 * @returns
 */
export const queryAdminCount = () => get<Statistics.AdminCount>(`/statistics/queryAdminCount`);